<html xmlns="http://www.w3.org/1999/xhtml"  
     xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:p="http://primefaces.prime.com.tr/ui"> 
    
<ui:component id="menu-visitante">
		
<p:menubar autoSubmenuDisplay="true">
	
	
	
<p:submenu label="Usuário">
		 <p:menuitem value="Editar Perfil" url="#"/>
		 <p:menuitem value="Propostas" url="#"/>
		 <p:menuitem value="Cooperações" url="#"/>
		 <p:separator /> 
		 <p:menuitem value="Sair" onclick="confirmation.show();" icon="ui-icon ui-icon-close" url="#" />
</p:submenu>
	
<p:submenu label="Cadastrar" icon="ui-icon ui-icon-search">
		 <p:menuitem value="Proposta" url="#" />
		 <p:menuitem value="Notícia" url="#" />
</p:submenu>

<p:submenu label="Consultar" icon="ui-icon ui-icon-search">
		 <p:menuitem value="Propostas" url="#"  icon="ui-icon ui-icon-back"/>
		 <p:menuitem value="Atividades" url="#" />
		 <p:menuitem value="TCC" url="#" />
		 
</p:submenu>

<p:submenu label="Ferramentas" icon="ui-icon ui-icon-gear">
 		
</p:submenu>
	
<p:menuitem value="Ajuda" icon="ui-icon ui-icon-help" url="#" />
	
</p:menubar>

<p:confirmDialog message="Deseja realmente sair?"  
                 showEffect="bounce" hideEffect="explode"  
                 header="SIGTCC" severity="alert" widgetVar="confirmation">  
                    <h:form>
		         <p:commandButton value="Sim" update="messages" oncomplete="confirmation.hide()"  
                     actionListener="#{buttonBean.destroyWorld}" />  
         		 <p:commandButton value="Não" onclick="confirmation.hide()" type="button" />                    
 					</h:form>
</p:confirmDialog> 
	
</ui:component>

</html>